package com.mes.data.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.core.annotation.Excel;
import com.mes.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据分析报告明细对象 mes_data_report_detail
 * 
 * @author itflash
 * @date 2025-02-27
 */
public class DataReportDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 报告ID（外键） */
    @Excel(name = "报告ID", readConverterExp = "外=键")
    private Long reportId;

    /** 数据键（如日期、类别等） */
    @Excel(name = "数据键", readConverterExp = "如=日期、类别等")
    private String keyName;

    /** 数据值 */
    @Excel(name = "数据值")
    private String value;

    /** 单位（如百分比、件等） */
    @Excel(name = "单位", readConverterExp = "如=百分比、件等")
    private String unit;

    /** 更新时间 */
    private Date updateDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }
    public void setKeyName(String keyName) 
    {
        this.keyName = keyName;
    }

    public String getKeyName() 
    {
        return keyName;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportId", getReportId())
            .append("keyName", getKeyName())
            .append("value", getValue())
            .append("unit", getUnit())
            .append("remark", getRemark())
            .append("updateDate", getUpdateDate())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
